/*
 * @Author       :
 * @Date         : 2022-02-25 13:59:51
 * @LastEditors  : Please set LastEditors
 * @LastEditTime : 2022-02-25 17:47:38
 * @Description  : 路由文件
 */

import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: () => import('@/layout/index.vue'), // 注意这里要带上 文件后缀.vue
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/pages/login/LoginPage.vue'), // 注意这里要带上 文件后缀.vue
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
